package com.maisuiit.pattern.cglibproxy;

import com.maisuiit.pattern.proxy.UserDao;
import com.maisuiit.pattern.proxy.UserDaoImpl;

/**
 * Cglib代理模式
 * @author zhangcc
 * @date 2021-07-13
 */
public class CglibTest {

    public static void main(String[] args) {
        CglibProxy cglibProxy = new CglibProxy();
        UserDao userDao = (UserDao) cglibProxy.getInstance(new UserDaoImpl());
        userDao.save();

    }
}
